import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { BrowserModule } from "@angular/platform-browser";
import { RouterModule, Routes } from "@angular/router";
import { AuthGuardService, AuthGuardModule } from "auth-guard";
import { MethodComponent } from "./method.component";
import { VModalComponent } from "./v-modal/v-modal.component";

const methodRoutes: Routes = [
  {
    path: "method",
    canActivateChild: [
      AuthGuardService
    ],
    children: [
      {
        path: "",
        component: MethodComponent
      }
    ]
  }
];

@NgModule({
  declarations: [
    MethodComponent,
    VModalComponent
  ],
  imports: [
    CommonModule,
    BrowserModule,
    RouterModule.forChild(methodRoutes)
  ],
  exports: [],
  providers: [],
})
export class MethodModule {}